import { Component } from '@angular/core';
import { ElectronService } from './core/services/electron/electron.service';
import { TranslateService } from '@ngx-translate/core';
import { APP_CONFIG } from '../environments/environment';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.less']
})
export class AppComponent {
  constructor(
    private electronService: ElectronService,
    private translate: TranslateService
  ) {
    //this.translate.setDefaultLang('en');
    console.log('APP_CONFIG', APP_CONFIG);
    //console.log('Window', window);
    if (electronService.isElectron) {
      console.log(process);
      console.log('Run in electron');
    } else {
      console.log('Run in browser');
    }
  }
}
